<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6/socket.io.min.js"></script>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript" charset="utf-8">
        var socket = io.connect('http://59.110.153.206:5000/test');


        socket.on('response1', function (msg) {
            $('#log').append(msg)
        });

        socket.on('message', function (msg) {
            console.log(msg);
        });

        socket.on('response3', function (msg) {
            $('#num').append(msg);
        });

    </script>
</head>
<body>
服务器连接状态：
<div id="log"></div>
<hr>
ping:<input type=text name="ping">
nslookup:<input type=text name="ping">
tracert:<input type=text name="ping">
<div id="num"></div>
</body>
</html>